Door lock device and control method for door lock device

ABSTRACT

Disclosed is a door lock device. The door lock device comprises: a communication unit for receiving location information of an electronic device and a key from the electronic device; a location information reception unit for receiving location information of the door lock device; a door lock unit having a locked state or a released state; and a control unit electrically connected with the communication unit, the location information reception unit, and the door lock unit, wherein the control unit determines a distance between the electronic device and the door lock device on the basis of the location information of the electronic device and the location information of the door lock device, and determines whether to release the door lock unit on the basis of information of the distance.

This application is the U.S. national phase of International ApplicationNo. PCT/KR2018/002985 filed on Mar. 14, 2018 which designated the U.S.and claims priority to KR Patent Application No. 10-2017-0032992 filedon Mar. 16, 2017, the entire contents of each of which are herebyincorporated by reference.

FIELD

Various embodiments of the disclosure relate to a control method of adoor lock device.

DESCRIPTION OF RELATED ART

Recently, with the development of communication technologies,technologies which generate a key capable of unlocking a door lockdevice in an electronic device to release the locked state of the doorlock device have been developed. The door lock releasing system isreferred to as a “smart key system” and may be used in various fields,such as vehicles, buildings, and houses.

The door lock device which receives a key from an electronic device torelease a door lock may be installed in a vehicle so as to release thelocked state of a door, a trunk, and a starting device of the vehicle.

SUMMARY

In the smart key system, a relay attack may occur while a key istransmitted to a door lock device. Thus, the door lock device may beexposed to abnormal access. Various embodiments of the disclosureprovide a door lock device capable of preventing such a relay attack.

A door lock device according to various embodiments may include: acommunication unit configured to receive a key and location informationof an electronic device from the electronic device; a locationinformation reception unit configured to receive location information ofthe door lock device; a door lock unit configured to be in a lockedstate or an unlocked state; and a controller electrically connected tothe communication unit, the location information reception unit, and thedoor lock unit, wherein the controller may determine a distance betweenthe electronic device and the door lock device on the basis of thelocation information of the electronic device and the locationinformation of the door lock device, and may determine whether to unlockthe door lock unit on the basis of information on the distance.

The controller may determine the distance between the electronic deviceand the door lock device on the basis of a signal received from theelectronic device through the communication unit.

The controller may determine a movement direction of the electronicdevice on the basis of a signal received from the electronic devicethrough the communication unit, and may determine whether to unlock thedoor lock unit on the basis of the movement direction of the electronicdevice.

The controller may unlock the door lock unit by using the key when thedistance is shorter than a predetermined distance.

The controller may unlock the door lock unit by using the key when theelectronic device is positioned within a predetermined area from thedoor lock device.

The controller may transmit notification information to the electronicdevice when a key configured to unlock the door lock device is receivedthrough the communication unit while the electronic device is spaced apredetermined distance or more apart from the door lock device.

The door lock unit may include a first door lock and a second door lock,and the controller may selectively release at least one of the firstdoor lock and the second door lock on the basis of the key.

The key may further include authentication information forauthenticating the electronic device, and the door lock device maydetermine whether to unlock the door lock unit by using theauthentication information. The authentication information may includeID information of the electronic device.

A control method of a door lock device according to various embodimentsmay include: receiving location information of an electronic device;receiving location information of the door lock device; determining adistance between the electronic device and the door lock device on thebasis of the location information of the electronic device and thelocation information of the door lock device; and determining whether tounlock the door lock unit on the basis of information on the distance.

The method may determine the distance between the electronic device andthe door lock device on the basis of a signal received from theelectronic device.

The method may further include: determining a movement direction of theelectronic device on the basis of a signal received from the electronicdevice; and determining whether to unlock the door lock unit on thebasis of the movement direction of the electronic device.

The method may further include unlocking the door lock unit by using thekey when the distance is shorter than a predetermined distance.

The method may unlock the door lock unit by using the key when theelectronic device is positioned within a predetermined area from thedoor lock device.

The method may include: receiving a key configured to unlock the doorlock device through the communication unit while the electronic deviceis spaced a predetermined distance or more apart from the door lockdevice; and transmitting notification information to the electronicdevice.

The door lock unit may include a first door lock and a second door lock,and the method may selectively release at least one of the first doorlock and the second door lock on the basis of the key.

The key may further include authentication information forauthenticating the electronic device, and the method may determinewhether to unlock the door lock device by using the authenticationinformation. The authentication information may include ID informationof the electronic device.

A door lock device according to various embodiments of the disclosuremay determine whether to unlock the door lock device on the basis of amovement direction and a distance between the door lock device and anelectronic device transmitting a key. Therefore, the door lock device issafe from a relay attack.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram explaining an electronic device within anetwork environment in various embodiments;

FIG. 2 is a block diagram of an electronic device according to variousembodiments;

FIG. 3 is a block diagram of a program module according to variousembodiments;

FIG. 4 is a block diagram of a door lock device according to variousembodiments;

FIG. 5 illustrates an operation between an electronic device and a doorlock device according to various embodiments;

FIG. 6 illustrates a structure of a key stored in a memory of anelectronic device according to various embodiments;

FIG. 7 illustrates an example in which an electronic device shares a keywith a third party to open a trunk of a vehicle according to variousembodiments; and

FIG. 8 is a flowchart of a processing operation when a door lock devicehas received a key from an electronic device.

DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS

Hereinafter, various embodiments of the present disclosure will bedescribed with reference to the accompanying drawings. Variousembodiments and terms used herein do not limit various embodiments ofthe present disclosure to the particular forms, and should be understoodto include various modifications, equivalents, and/or alternatives ofthe corresponding embodiments. In the description of the drawings,identical or similar reference numerals are used to designate identicalor similar elements. It is to be understood that the singular forms mayinclude plural referents unless the context clearly dictates otherwise.In the present disclosure, an expression such as “A or B,” or “at leastone of A and B” may include all possible combinations of the listeditems. Expressions such as “first,” “second,” “primarily,” or“secondary,” as used herein, may represent various elements regardlessof order and/or importance and do not limit corresponding elements. Theexpressions may be used for distinguishing one element from anotherelement. When it is described that an element (such as a first element)is “(operatively or communicatively) coupled” to or “connected” toanother element (such as a second element), the element can be directlyconnected to the other element or can be connected through anotherelement (such as a third element).

An expression “configured to (or set)” used in the present disclosuremay be used interchangeably with, for example, “suitable for,” “havingthe capacity to,” “designed to,” “adapted to,” “made to,” or “capableof” according to a situation. A term “configured to (or set)” does notonly mean “specifically designed to” by hardware. Alternatively, in somesituations, the expression “apparatus configured to” may mean that theapparatus “can” operate together with another apparatus or component.For example, a phrase “a processor configured (or set) to perform A, B,and C” may be at a dedicated processor (such as an embedded processor)for performing a corresponding operation or a generic-purpose processor(such as a Central Processing Unit (CPU) or an application processor)that can perform a corresponding operation by executing at least onesoftware program stored at a memory device.

An electronic device according to embodiments of the present disclosure,may be embodied as, for example, at least one of a smart phone, a tabletPersonal Computer (PC), a mobile phone, a video phone, an e-book reader,a desktop PC, a laptop PC, a netbook computer, a workstation, a server,a Personal Digital Assistant (PDA), a Portable Multimedia Player (PMP),an MPEG 3 (MP3) player, a medical equipment, a camera, and a wearabledevice that provide a hotspot function.

The wearable device can include at least one of an accessory type (e.g.,a watch, a ring, a bracelet, an ankle bracelet, a necklace, glasses, acontact lens, or a Head-Mounted-Device (HMD)), a fabric or clothingembedded type (e.g., electronic garments), a body attachable type (e.g.,a skin pad or a tattoo), and an implantable circuit. The electronicdevice may be embodied as at least one of, for example, a television, aDigital Versatile Disc (DVD) player, an audio device, a refrigerator, anair-conditioner, a cleaner, an oven, a microwave oven, a washingmachine, an air cleaner, a set-top box, a home automation control panel,a security control panel, a media box (e.g., Samsung HomeSync™, AppleTV™, or Google TV™), a game console (e.g., Xbox™, PlayStation™), anelectronic dictionary, an electronic key, a camcorder, and an electronicframe.

In another embodiment, the electronic device may be embodied as at leastone of various medical devices (such as, various portable medicalmeasuring devices (a blood sugar measuring device, a heartbeat measuringdevice, a blood pressure measuring device, or a body temperaturemeasuring device), a Magnetic Resonance Angiography (MRA) device, aMagnetic Resonance Imaging (MRI) device, a Computed Tomography (CT)device, a scanning machine, and an ultrasonic wave device), a navigationdevice, a Global Navigation Satellite System (GNSS), an Event DataRecorder (EDR), a Flight Data Recorder (FUR), a vehicle infotainmentdevice, electronic equipment for ship (such as, a navigation device forship and gyro compass), avionics, a security device, a head unit for avehicle, an industrial or home robot, a drone, an Automated TellerMachine (ATM) of a financial institution, a Point Of Sales (POS) deviceof a store, and an Internet of Things (IoT) device (e.g., a light bulb,various sensors, a sprinkler device, a fire alarm, a thermostat, astreet light, a toaster, sports equipment, a hot water tank, a heater,and a boiler). According to an embodiment, the electronic device may beembodied as at least one of a portion of furniture,building/construction or vehicle, an electronic board, an electronicsignature receiving device, a projector, and various measuring devices(e.g., water supply, electricity, gas, or electric wave measuringdevice). An electronic device, according to an embodiment, can be aflexible electronic device or a combination of two or more of theforegoing various devices. An electronic device, according to anembodiment of the present disclosure, is not limited to the foregoingdevices may be embodied as a newly developed electronic device. The term“user”, as used herein, can refer to a person using an electronic deviceor a device using an electronic device (e.g., an artificial intelligenceelectronic device).

A door lock device according to various embodiments of the presentdocument may be installed or disposed at, for example, a vehicle, anentrance door of a building, an entrance door of a house, a door of aroom in a house, a blocking facility of a parking lot, and an officespace.

The “key” in the present document may refer to information or data thatcan be used to release the locked state of the door lock device.

The “signal” in the present document may refer to an electromagneticwave including the “key”.

FIG. 1 is a block diagram explaining an electronic device within anetwork environment in various embodiments. Referring to FIG. 1 , anelectronic device 101 resides in a network environment 100. Theelectronic device 101 can include a bus 110, a processor 120, a memory130, an input/output interface 150, a display 160, and a communicationinterface 170. The electronic device 101 may be provided without atleast one of the components, or may include at least one additionalcomponent. The bus 110 can include a circuit for connecting thecomponents 120 through 170 and delivering communication signals (e.g.,control messages or data) therebetween. The processor 120 can includeone or more of a CPU, an application processor, and a CommunicationProcessor (CP). The processor 120, for example, can perform an operationor data processing with respect to control and/or communication of atleast another component of the electronic device 101.

The memory 130 can include a volatile and/or nonvolatile memory. Thememory 130, for example, can store commands or data relating to at leastanother component of the electronic device 101. According to anembodiment, the memory 130 can store software and/or a program 140. Theprogram 140 can include, for example, a kernel 141, middleware 143, anApplication Programming Interface (API) 145, and/or an applicationprogram (or “application”) 147. At least part of the kernel 141, themiddleware 143, or the API 145 can be referred to as an Operating System(OS). The kernel 141 can control or manage system resources (e.g., thebus 110, the processor 120, or the memory 130) used for performingoperations or functions implemented by the other programs (e.g., themiddleware 143, the API 145, or the application program 147).Additionally, the kernel 141 can provide an interface for controlling ormanaging system resources by accessing an individual component of theelectronic device 101 from the middleware 143, the API 145, or theapplication program 147.

The middleware 143, for example, can serve an intermediary role forexchanging data between the API 145 or the application program 147 andthe kernel 141 through communication. Additionally, the middleware 143can process one or more job requests received from the applicationprogram 147, based on their priority. For example, the middleware 143can assign a priority for using a system resource (e.g., the bus 110,the processor 120, or the memory 130) of the electronic device 101 to atleast one of the application programs 147, and process the one or morejob requests. The API 145, as an interface through which the application147 controls a function provided from the kernel 141 or the middleware143, can include, for example, at least one interface or function (e.g.,an instruction) for file control, window control, image processing, orcharacter control. The input/output interface 150, for example, candeliver commands or data inputted from a user or another external deviceto other component(s) of the electronic device 101, or output commandsor data inputted from the other component(s) of the electronic device101 to the user or another external device.

The display 160, for example, can include a Liquid Crystal Display(LCD), a Light Emitting Diode (LED) display, an Organic Light EmittingDiode (OLED) display, a MicroElectroMechanical Systems (MEMS) display,or an electronic paper display. The display 160, for example, candisplay various contents (e.g., texts, images, videos, icons, and/orsymbols) to the user. The display 160 can include a touch screen, forexample, and receive touch, gesture, proximity, or hovering inputs byusing an electronic pen or a user's body part. The communicationinterface 170, for example, can set a communication between theelectronic device 101 and an external device (e.g., a first externalelectronic device 102, a second external electronic device 104, or aserver 106). For example, the communication interface 170 cancommunicate with the external device (e.g., the second externalelectronic device 104 or the server 106) over a network 162 throughwireless communication or wired communication.

The wireless communication, for example, can include cellularcommunication using at least one of Long Term Evolution (LTE),LTE-Advanced (LTE-A), Code Division Multiple Access (CDMA), WidebandCDMA (WCDMA), Universal Mobile Telecommunications System (UMTS),Wireless Broadband (WiBro), or Global System for Mobile Communications(GSM). The wireless communication can include, for example, at least oneof Wireless Fidelity (WiFi), Bluetooth, Bluetooth Low Energy (BLE),Zigbee, Near Field Communication (NFC), magnetic secure transmission,Radio Frequency (RF), and Body Area Network (BAN). The wirelesscommunication can include GNSS. The GNSS can include, for example,Global Positioning System (GPS), Global Navigation Satellite System(GLONASS), Beidou navigation satellite system (Beidou), or Galileo (theEuropean global satellite-based navigation system). Hereafter, the GPScan be interchangeably used with the GNSS. The wired communication, forexample, can include at least one of Universal Serial Bus (USB), HighDefinition Multimedia Interface (HDMI), Recommended Standard 232(RS-232), power line communications, and Plain Old Telephone Service(POTS). The network 162 can include a telecommunications network, forexample, at least one of computer network (e.g., LAN or WAN), Internet,and telephone network.

Each of the first and second external electronic devices 102 and 104 canbe of the same as or of a different type from that of the electronicdevice 101. According to embodiments of the present disclosure, all orpart of operations executed in the electronic device 101 can be executedby another electronic device or a plurality of electronic devices (e.g.,the electronic device 102 or 104, or the server 106). To perform afunction or service automatically or by request, instead of performingthe function or the service by the electronic device 101, the electronicdevice 101 can request at least part of a function relating thereto fromanother device (e.g., the electronic device 102 or 104, or the server106). The other electronic device (e.g., the electronic device 102 or104, or the server 106) can perform the requested function or anadditional function and send its result to the electronic device 101.The electronic device 101 can provide the requested function or serviceby processing the received result. In doing so, for example, cloudcomputing, distributed computing, or client-server computing techniquescan be used.

FIG. 2 is a block diagram of an electronic device 201 according tovarious embodiments.

The electronic device 201 may include, for example, all or part of theelectronic device 101 illustrated in FIG. 1 . The electronic device 201may include: at least one controller (e.g. AP) 210; a communication unit220; a subscriber identification module 224; a memory 230; a sensor 240;an input unit 250; a display unit 260; an interface 270; an audio unit280; a camera unit 291; a power management unit 295; a battery 296; anindicator 297; and a motor 298.

The controller 210 may drive, for example, an operating system orapplication to control multiple hardware or software elements connectedto the controller 210, and may process and calculate various kinds ofdata.

The controller 210 may be implemented, for example, as a system-on-chip(SoC). According to one embodiment, the controller 210 may furtherinclude a graphics processing unit (GPU) and/or an image signalprocessor.

The controller 210 may include at least some (e.g. a cellular module221) of the elements illustrated in FIG. 2 . The controller 210 may loadand process commands or data received from at least one of otherelements (e.g. nonvolatile memory) in volatile memory, and may storeresultant data in the nonvolatile memory.

The communication unit 220 may include, for example, a cellular module221, a Wi-Fi module 223, a Bluetooth module 225, an NFC module 228, andan RF module 229. The cellular module 221 may provide, for example, avoice call, a video call, a text service, or an Internet service over acommunication network. According to one embodiment, the cellular module221 may identify and authenticate the electronic device 201 in thecommunication network by using the subscriber identification module(e.g. SIM card) 224. According to one embodiment, the cellular module221 may perform at least some of the functions that can be provided bythe controller 210. According to one embodiment, the cellular module 221may include a communication controller (CP). According to an embodiment,at least some (e.g. two or more) among the cellular module 221, theWi-Fi module 223, the Bluetooth module 225, a GNSS module 227, or theNFC module 228 may be included in one integrated chip (IC) or ICpackage. The RF module 229 may transmit and receive, for example, acommunication signal (e.g. an RF signal). The RF module 229 may include,for example, a transceiver, a power amp module (PAM), a frequencyfilter, a low noise amplifier (LNA), or an antenna. According to anotherembodiment, at least one of the cellular module 221, the Wi-Fi module223, the Bluetooth module 225, or the NFC module 228 may transmit andreceive an RF signal through a separate RF module. The subscriberidentification module 224 may include, for example, an embedded SIM or acard including a subscriber identification module, and may includeunique identification information (e.g. an integrated circuit cardidentifier (ICCID)) or subscriber information (e.g. an internationalmobile subscriber identity (IMSI)).

The communication unit 220 may transmit a key stored in the memory 230to a door lock device.

A location information reception unit 227 may receive locationinformation of an electronic device from a satellite.

The memory 230 (e.g. memory 130) may include, for example, an internalmemory 232 or an external memory 234. The internal memory 232 mayinclude at least one of, for example, volatile memory (e.g. DRAM, SRAM,or SDRAM) and nonvolatile memory (e.g. one-time programmable ROM(OTPROM), PROM, EPROM, EEPROM, mask ROM, flash ROM, flash memory, a harddrive, or a solid-state drive (SSD)). The external memory 234 mayinclude a flash drive, for example, compact flash (CF), secure digital(SD), micro-SD, mini-SD, extreme digital (xD), a multi-media card (MMC),or a memory stick. The external memory 234 may be functionally orphysically connected to the electronic device 201 through variousinterfaces.

The memory 230 may store a key for unlocking a door lock device.

The sensor 240 may measure physical quantities or sense the state ofoperation of the electronic device 201, and may convert measured orsensed information into an electric signal. The sensor 240 may includeat least one of, for example, a gesture sensor 240A, a gyro sensor 240B,an atmospheric pressure sensor 240C, a magnetic sensor 240D, anacceleration sensor 240E, a grip sensor 240F, a proximity sensor 240G, acolor sensor 240H (e.g. RGB (red, green, blue) sensor), a biometricsensor 240I, a temperature/humidity sensor 240J, an illuminance sensor240K, or an ultraviolet (UV) sensor 240M. Additionally or alternatively,the sensor 240 may include, for example, an e-nose sensor, anelectromyography (EMG) sensor, an electroencephalogram (EEG) sensor, anelectrocardiogram (ECG) sensor, an infrared (IR) sensor, an iris sensor,and/or a fingerprint sensor. The sensor 240 may further include acontrol circuit for controlling at least one sensor included therein. Inan embodiment, the electronic device 201 may further include acontroller configured to control the sensor 240, as a part of thecontroller 210 or independently thereof, and thus may control the sensor240 while the controller 210 is in a sleep state.

The input unit 250 may include, for example, a touch panel 252, a(digital) pen sensor 254, a key 256, or an ultrasonic input unit 258.The touch panel 252 may use at least one of, for example, a capacitivescheme, a pressure-sensitive scheme, an infrared scheme, or anultrasonic scheme. Further, the touch panel 252 may further include acontrol circuit. The touch panel 252 may further include a tactile layerand thus may provide a tactile response to a user. The (digital) pensensor 254 may be, for example, a part of the touch panel, or mayinclude a separate recognition sheet. The key 256 may include, forexample, a physical button, an optical key, or a keypad. The ultrasonicinput unit 258 may sense, through a microphone (e.g. microphone 288),ultrasonic waves generated in an input instrument and may identify datacorresponding to the sensed ultrasonic waves.

The display unit 260 (e.g. the display 160) may include a panel 262, ahologram device 264, a projector 266, and/or a control circuit forcontrolling the same. The panel 262 may be implemented, for example, tobe flexible, transparent, or wearable. The panel 262 may include thetouch panel 252 and one or more modules. According to one embodiment,the panel 262 may include a pressure sensor (or force sensor) capable ofmeasuring the intensity of pressure of a user's touch. The pressuresensor may be implemented to be integrated with the touch panel 252 ormay be implemented as at least one sensor provided independently of thetouch panel 252. The hologram device 264 may use light interference todisplay a three-dimensional image in the air. The projector 266 mayproject light onto a screen to display an image thereon. The screen maybe positioned, for example, inside or outside the electronic device 201.The interface 270 may include, for example, an HDMI 272, a USB 274, anoptical interface 276, or D-subminiature (D-sub) 278. The interface 270may be included in, for example, the communication interface 170illustrated in FIG. 1 . Additionally or alternatively, the interface 270may include, for example, a mobile high-definition link (MHL) interface,an SD card/multi-media card (MMC) interface, or an infrared dataassociation (IrDA) standard interface.

The audio unit 280 may bidirectionally convert, for example, a sound orelectric signal. At least some elements of the audio unit 280 may beincluded in, for example, the input/output interface 145 illustrated inFIG. 1 . The audio unit 280 may process sound information which is inputor output through, for example, a speaker 282, a receiver 284, anearphone 286, or a microphone 288. The camera unit 291 is a device whichcan capture, for example, a static image or a moving image, and,according to one embodiment, may include one or more image sensors (e.g.a front sensor or a rear sensor), a lens, an image signal processor(ISP), or a flash (e.g. LED or xenon lamp). The power management unit295 may manage, for example, power of the electronic device 201.According to one embodiment, the power management unit 295 may include apower management integrated circuit (PMIC), a charging IC, or a batteryor fuel gauge. The PMIC may have a wired charging scheme and/or awireless charging scheme. The wireless charging scheme may include, forexample, a magnetic-resonance scheme, a magnetic-induction scheme, or anelectromagnetic-wave scheme, and may further include an additionalcircuit for wireless charging, for example, a coil loop, a resonancecircuit, or a rectifier. The battery gauge may measure, for example, theremaining capacity, charging voltage, current, or temperature of thebattery 296. The battery 296 may include, for example, a rechargeablebattery and/or a solar battery.

The indicator 297 may indicate the specific state of the electronicdevice 201 or a part thereof (e.g. the controller 210), for example, abooting state, a message state, or a charge state. The motor 298 mayconvert an electric signal into a mechanical vibration, and may generatea vibration, or a haptic effect. The electronic device 201 may include,for example, a mobile TV support device (e.g. a GPU) that can processmedia data according to standards such as digital multimediabroadcasting (DMB), digital video broadcasting (DVB), mediaFlo™, or thelike.

Each of the elements described in the present document may include oneor more components, and the name of the corresponding element may varydepending on the type of an electronic device. In various embodiments,some of the elements of an electronic device (e.g. the electronic device201) may be omitted, or the electronic device may further includeadditional elements. Alternatively, some of the elements may be combinedto form a single entity, and thus, may equivalently execute thefunctions of the corresponding elements prior to the combinationthereof.

FIG. 3 is a block diagram of a program module according to an embodimentof the present disclosure.

A program module 310 (e.g., the program 140) can include an OS forcontrolling a resource relating to an electronic device (e.g., theelectronic device 101) and/or various applications (e.g., theapplication program 147) running on the OS. The OS can include, forexample, Android™, iOS™, Windows™, Symbian™, Tizen™, or Bada™. Referringto FIG. 3 , the program module 310 can include a kernel 320 (e.g., thekernel 141), a middleware 330 (e.g., the middleware 143), an API 360(e.g., the API 145), and/or an application 370 (e.g., the applicationprogram 147). At least part of the program module 310 can be preloadedon an electronic device or can be downloaded from an external electronicdevice (e.g., the electronic device 102, 104, or the server 106).

The kernel 320 includes, for example, at least one of a system resourcemanager 321 and/or a device driver 323. The system resource manager 321can control, allocate, or retrieve a system resource. According to anembodiment, the system resource manager 321 can include a processmanagement unit, a memory management unit, or a file system managementunit. The device driver 323 can include, for example, a display driver,a camera driver, a Bluetooth driver, a sharing memory driver, a USBdriver, a keypad driver, a WiFi driver, an audio driver, or anInter-Process Communication (IPC) driver. The middleware 330, forexample, can provide a function commonly required by the application370, or can provide various functions to the application 370 through theAPI 360 in order to allow the application 370 to efficiently use alimited system resource inside the electronic device. The middleware 330includes at least one of a runtime library 335, an application manager341, a window manager 342, a multimedia manager 343, a resource manager344, a power manager 345, a database manager 346, a package manager 347,a connectivity manager 348, a notification manager 349, a locationmanager 350, a graphic manager 351, and a security manager 352.

The runtime library 335 can include, for example, a library module usedby a complier to add a new function through a programming language whilethe application 370 is running. The runtime library 335 can manageinput/output, manage memory, or arithmetic function processing. Theapplication manager 341, for example, can manage the life cycle of theapplications 370. The window manager 342 can manage a GUI resource usedin a screen. The multimedia manager 343 can recognize a format forplaying various media files and encode or decode a media file by usingthe codec in a corresponding format. The resource manager 344 can managea source code of the application 3740 or a memory space. The powermanager 345 can manage the capacity or power of the battery and providepower information for an operation of the electronic device. The powermanager 345 can operate together with a Basic Input/Output System(BIOS). The database manager 346 can create, search, or modify adatabase used in the application 370. The package manager 347 can manageinstallation or updating of an application distributed in a package fileformat.

The connectivity manger 348 can manage, for example, a wirelessconnection. The notification manager 349 can provide an event, such asincoming messages, appointments, and proximity alerts, to the user. Thelocation manager 350 can manage location information of an electronicdevice. The graphic manager 351 can manage a graphic effect to beprovided to the user or a user interface relating thereto. The securitymanager 352 can provide, for example, system security or userauthentication. The middleware 330 can include a telephony manager formanaging a voice or video call function of the electronic device, or amiddleware module for combining various functions of the above-describedcomponents. The middleware 330 can provide a module specialized for eachtype of OS. The middleware 330 can dynamically delete part of theexisting components or add new components. The API 360, as a set of APIprogramming functions, can be provided as another configurationaccording to the OS. For example, Android or iSO can provide one API setfor each platform, and Tizen can provide two or more API sets for eachplatform.

The application 370 can include at least one of a home 371, a dialer372, an SMS/Multimedia Messaging System (MMS) 373, an Instant Message(IM) 374, a browser 375, a camera 376, an alarm 377, a contact 378, avoice dial 379, an e-mail 380, a calendar 381, a media player 382, analbum 383, a clock 384, health care (e.g., measure an exercise amount orblood sugar level), or environmental information (e.g., air pressure,humidity, or temperature information) provision application. Theapplication 370 can include an information exchange application forsupporting information exchange between the electronic device and anexternal electronic device. The information exchange application caninclude, for example, a notification relay application for relayingspecific information to the external device or a device managementapplication for managing the external electronic device. For example,the notification relay application can relay notification informationfrom another application of the electronic device to an externalelectronic device, or receive and forward notification information froman external electronic device to the user. The device managementapplication, for example, can install, delete, or update a function(e.g., turn-on/turn off of the external electronic device itself (orsome components) or display brightness (or resolution) adjustment) of anexternal electronic device communicating with the electronic device, oran application operating in the external electronic device. Theapplication 370 can include a specified application (e.g., a health careapplication of a mobile medical device) according to a property of theexternal electronic device. The application 370 can include anapplication received from an external electronic device. At least partof the program module 310 can be implemented (e.g., executed) withsoftware, firmware, hardware (e.g., the processor 210), or a combinationof at least two of them, and include a module, a program, a routine, aset of instructions, or a process for executing one or more functions.

FIG. 4 is a block diagram of a door lock device according to variousembodiments.

Referring to FIG. 4 , a door lock device 400 may include a controller401, a communication unit 409, a door lock unit 407, a speaker 403, alight-emitting unit 405, a power supply unit 406, a memory 402, and alocation information reception unit 420.

The communication unit 409 may include an NFC module 411, an MST module412, a Bluetooth module 413, a Wi-Fi module 414, and a long-distancecommunication module (e.g. a 3g, 5g, or 5G module 415).

The communication unit 409 may receive a key and location information ofan electronic device from the electronic device. In an embodiment, thelocation information of the electronic device may be included in thekey.

Specifically, the door lock device 400 may receive a key from theelectronic device by using a near field communication module (e.g. theNFC module 411, MST module 412, or Bluetooth module 413), or may receivethe key through a long-distance communication module such as a 3Gmodule. The key may be encoded and transmitted from the electronicdevice. Further, the door lock device 400 may receive locationinformation of the electronic device through the near-fieldcommunication module or long-distance communication module.

The door lock device may have a unique credential that can be used torelease a door lock, and the credential may be provided by amanufacturer during the manufacture of the door lock device. Further thedoor lock device may be provided with a credential through a server. Thedoor lock device may be not only attached to gates of houses, buildings,and offices, but may also be installed in a movable means such as avehicle (e.g., an automobile).

In the present document, the key may be interpreted to refer to anauthentication means including a function of releasing a door lock aswell as the roles of a key for starting a vehicle, a virtual key foroperating an electronic device, and a virtual key for financialtransactions.

The door lock unit 407 may include multiple door locks 431, 432, and433, and may be in a locked or unlocked state. The fact that the doorlock unit 407 is in a locked or unlocked state means that at least oneof the multiple door locks 431, 432, and 433 included in the door lockunit 407 is in a locked or unlocked state.

The multiple door locks 431, 432, and 433 may include a motor or anelectromagnet, and may lock or unlock a door. For example, the firstdoor lock 431 may be a vehicle door. The second door lock 432 may be avehicle trunk. The third door lock 433 may be a vehicle engine startingdevice.

When the door lock device 400 has been normally unlocked, the speaker403 may output a predetermined sound under the control of a controller.The speaker 403 may not be included in the door lock device 400depending on embodiments.

When the door lock device 400 has been unlocked normally, thelight-emitting unit (e.g. LED) may emit light in a predetermined patternor predetermined color under the control of the controller. Thelight-emitting unit 405 may not be included in the door lock device 400depending on embodiments.

The power supply unit 406 (e.g. a battery of a vehicle) supplies powerto the door lock device 400.

The memory 402 may store credential data that can be used to unlock thedoor lock device 400. The credential data is generated by a manufacturerduring the manufacture of the door lock device, and may be stored in thememory. In the description below, for convenience, credential datastored in the memory 402 of the door lock device may be referred to asfirst credential data, and credential data transmitted from theelectronic device will be referred to as second credential data.

The controller 401 may control the communication unit 409, the door lockunit 407, the memory 402, the speaker 403, and the light-emitting unit405.

The controller 401 may control the door lock unit 407 to be in anunlocked or locked state.

For example, when a key is transmitted from the electronic device, thedoor lock device 400 receives the key through the communication unit,obtains second credential data from the received key, and compares thesecond credential data with first credential data stored in the memory402. As a result of the comparison, when the first credential data andthe second credential data match each other, the controller 401 maycontrol the door lock unit 407 to release a locked state.

When the door lock device 400 has been unlocked normally, the controller401 may control the speaker to output a predetermined sound.

Alternatively, when the door lock device 400 has been unlocked normally,the controller 401 may control the light-emitting unit to emit light ina predetermined pattern or a predetermined color.

Alternatively, when the door lock device 400 has been unlocked normally,the controller 401 may control the Bluetooth module 413 to transmit datacorresponding to successful unlocking to the electronic device.

The location information reception unit 420 may be, for example, aglobal positioning system (GPS), a global navigation satellite system(GLONASS), a BeiDou navigation satellite system (hereinafter, “BeiDou”),or Galileo (European global satellite-based navigation system). Thelocation information reception unit 420 may receive location informationof the door lock device 400. When the door lock device 400 is installedin a vehicle, the location information reception unit 420 may beincluded in a navigation system installed in the vehicle.

That is, the door lock device 400 may receive the location informationof the door lock device from the navigation system installed in thevehicle.

Meanwhile, the door lock device 400 may acquire the location informationfrom a signal received through the communication unit. Specifically, thecontroller 401 may acquire the location information by using indoorpositioning techniques (e.g. triangulation technique).

The controller 401 may determine the distance between the electronicdevice and the door lock device on the basis of the location informationof the electronic device and the location information of the door lockdevice, and may determine whether to unlock the door lock unit on thebasis of the distance.

The memory 402 may store information on the valid area, valid distance,or valid angle in which the key can operate. The information on thevalid area, valid distance, or valid angle may be registered by amanufacturer at the time of manufacture of the door lock device, or maybe registered by a user.

The controller 401 may use the location information of the electronicdevice and the location information of the door lock device to calculatethe distance between the electronic device and the door lock device, andmay determine whether the calculated distance belongs to the valid area,valid distance, or valid angle, which is stored in the memory 402.

When the distance between the electronic device and the door lock devicebelongs to the valid area, valid distance, or valid angle, thecontroller 401 may unlock the door lock unit 407 by using a key receivedfrom the electronic device.

Meanwhile, the controller 401 may determine the distance between theelectronic device and the door lock device on the basis of a signalreceived from the electronic device through the communication unit. Thesignal received from the electronic device may be a signal including akey, or may be a separate signal for measuring the distance.Specifically, the controller 401 may measure the intensity of a signalreceived from the electronic device and may determine the distancebetween the electronic device and the door lock device on the basis ofthe result of the measurement.

When the distance between the electronic device and the door lock deviceis shorter than a predetermined distance, the controller 401 may unlockthe door lock unit 407 by using a key transmitted from the electronicdevice.

Further, the controller 401 may determine the movement direction of theelectronic device on the basis of a signal received from the electronicdevice through the communication unit. Specifically, the controller 401may analyze a signal received through the communication unit todetermine the location at which the signal has been transmitted, and maydetermine the movement direction of the electronic device on the basisof the location. The signal used in determining the movement directionof the electronic device may be a signal including a key transmitted bythe electronic device, or may be a separate signal for measuring thedirection.

When the movement direction of the electronic device corresponds to thevalid angle stored in the memory, the controller 401 may unlock the doorlock unit 407.

When the electronic device is positioned within a predetermined areafrom the door lock device, the controller 401 may unlock the door lockunit 407 by using a key.

Further, the controller 401 may transmit notification information to theelectronic device when a key configured to unlock the door lock deviceis received through the communication unit while the electronic deviceis spaced a predetermined distance or more apart from the door lockdevice.

Meanwhile, the door lock unit 407 may include a first door lock 431 anda second door lock 432. The controller 401 may selectively release atleast one of the first door lock 431 and the second door lock 432 on thebasis of a key received from the electronic device.

The key, which the door lock device 407 has received from the electronicdevice, may include data which may be used in selecting at least one ofmultiple door locks. For example, the key may include data which canrelease the locked state of at least one of a door and a trunk of avehicle. The data constitutes a field of the key, and a specific examplethereof will be described later. The controller 401 may selectivelyrelease the locked state of at least one of the door and the trunk ofthe vehicle by using the data.

The key, which the electronic device transmits to the door lock device,may further include authentication information for authenticating theelectronic device. Specifically, the authentication information mayinclude ID information of the electronic device (e.g. the MAC address ofthe electronic device or the name of the electronic device).

When authentication information of the electronic device is found in areceived key, the door lock device 400 may determine that the receivedkey is valid. The authentication information may include ID informationof the electronic device.

The door lock device 400 may acquire authentication information from akey received from the electronic device at the time point at which thekey is initially registered, and may store the acquired authenticationinformation in the memory 402. The door lock device 400 may compare theauthentication information of the electronic device stored in the memory402 with authentication information obtained from the key transmitted bythe electronic device, and may release the locked state of the door lockunit 407 when the authentication information of the electronic device isidentical to the authentication information obtained from the key.

In various embodiments, some elements of the door lock device 400 may beomitted, or the door lock device may further include additionalelements. Alternatively, some of the elements may be combined to form asingle entity, and thus, may equivalently execute functions of thecorresponding elements prior to the combination thereof.

FIG. 5 illustrates an operation between an electronic device and a doorlock device according to various embodiments.

Referring to FIG. 5 , illustrated are an electronic device 503, avehicle having a door lock device 501 installed therein, and relayattackers 511, 513, and 531.

The relay attacker 511, 513, or 531 may be, for example, a smartphone orvehicle of a third party performing a relay attack. The relay attacker511, 513, or 531 may intercept a key being transmitted by the electronicdevice 503, and the smartphone-type relay attacker 511 or 513 maytransmit the intercepted key to the door lock device 501 in an attemptto unlock the door lock device 501.

For example, when the electronic device 503 transmits a key in order tounlock the door lock device 501, the relay attacker 511 may receive thekey being transmitted to the door lock device 501 and may store thereceived key in the memory. The relay attacker 511 may transmit the keystored in the memory to the door lock device 501.

When the key is received, the door lock device 501 may analyze dataincluded in the key to determine whether the key was transmitted by theelectronic device 503 of a user or was transmitted by the relay attacker511.

Specifically, the door lock device 501 may receive a key through acommunication unit, and may obtain, from the received key, IDinformation of a device which has transmitted the key. When the IDinformation obtained from the key is identical to ID information storedin the door lock device 501, the door lock device 501 may release thelocked state of the door lock device 501 by using the received key.

When the ID information is not determined to be identical to the IDinformation stored in the door lock device 501, the door lock device 501may maintain the locked state of the door lock device 501. Further, thedoor lock device 501 may transmit notification information indicating“abnormal access” to the user's electronic device 503.

The door lock device 501 may determine the distance between theelectronic device 503 and the door lock device 501 on the basis oflocation information of the electronic device 503 transmitted from theelectronic device 503 and location information of the door lock device501, and may determine whether to unlock a door lock unit on the basisof information on the distance.

The door lock device 501 may configure a virtual boundary line 505within a range of a predetermined distance and a predetermine angle fromthe door lock device 501. The virtual boundary line 505 may beconfigured by a user, or may be configured by a predetermined area bythe door lock device 501.

When a key is received from a device inside the virtual boundary line505, the door lock device 501 may use the received key to unlock thedoor lock unit of the door lock device 501, and when a key is receivedfrom a device outside the virtual boundary line 505, the door lockdevice 501 may maintain the locked state of the door lock unit of thedoor lock device 501.

For example, when a key is received from the relay attacker 511, thedistance between the relay attacker 511 and the door lock device 501 isbeyond the virtual boundary line, and thus the door lock device 501 maymaintain the door lock unit of the door lock device 501 in a lockedstate.

The door lock device 501 may obtain location information of the relayattacker 511 from the key received from the relay attacker 511 todetermine the direction and distance between the door lock device 501and the relay attacker 511.

Alternatively, the door lock device 501 may use the key received fromthe relay attacker 511 or 513 to determine the direction and distancebetween the door lock device 501 and the relay attacker 511 or 513. Thedoor lock device 501 may measure a received signal strength indicator(RSSI) of a key to determine the distance and direction. Further, thedoor lock device 501 may receive an RSSI measuring signal separatelyfrom a key to determine the distance and direction.

The door lock device 501 may monitor the movement direction of theelectronic device 503 and may determine the validity of a received keysignal on the basis of the movement direction and distance of theelectronic device 503. For example, when a user in the vehicle 501 getsout of the vehicle with the electronic device 503 and moves away, thedoor lock device 501 may measure the movement direction and movementdistance of the electronic device 503 while continuously receiving asignal transmitted from the electronic device 503, and may store themeasured movement direction and distance in the memory.

When a key is received from the relay attacker 513, the door lock device501 installed in the vehicle may determine that the received key signalis invalid on the basis of the movement direction and distance of theelectronic device 503, and may remain in a locked state.

Meanwhile, when a key is received from the relay attacker 511 or 513,the door lock device 501 may transmit notification information to theelectronic device 503. The notification information may be transmittedto the user in the form of a text or voice message.

As another example, the door lock device 501 can also respond to avehicle-type relay attacker 531 masquerading as a door lock device.

For example, the electronic device 503 has location information of thedoor lock device 501, and may add the location information of the doorlock device 501 to a key, and may then transmit the key to the door lockdevice 501.

When the relay attacker 531 masquerades as the door lock device andreceives the key, since the key includes the location information of thedoor lock device 501, the relay attacker 531 in an invalid location 524cannot use the key even though the attacker receives the key from theelectronic device 503.

According to an embodiment, the electronic device 503 may receivelocation information of a door lock device through a communication unit,and may control the communication unit to transmit a key to the doorlock device on the basis of the location information of the door lockdevice. For convenience, in the description, the door lock device willbe referred to as a vehicle 501.

If a user is in the vehicle 501, location information of the vehicle 501may be substantially identical to location information of the electronicdevice 503. The electronic device 503 may compare location informationreceived from the vehicle 501 with the location information of theelectronic device 503, and, when there is a difference therebetween, maydetermine that the user has exited the vehicle 501. Thereafter, when itis determined that the received location information of the vehicle 501has not changed for a predetermined time, the electronic device 503 maydetermine that the vehicle 501 is parked and may store final locationinformation of the vehicle 501 in a memory.

Further, in this situation, when the user moves away from the vehicleand is outdoors, the movement direction and movement distance of theelectronic device 503 may be measured on the basis of a signal receivedfrom a location information reception unit of the electronic device 503and a signal output from a sensor unit.

When the user is indoors or the location information reception unit doesnot receive the location information of the electronic device 503, theelectronic device 503 may measure the movement direction and movementdistance of the electronic device by using well-known indoor positioningtechnique.

Specifically, the sensor unit (reference numeral 240 in FIG. 2 ) of theelectronic device 503 may include a gyro sensor and an accelerationsensor. The electronic device 503 may measure the movement direction andmovement distance of the electronic device 503 by using signals outputfrom the gyro sensor and the acceleration sensor.

Meanwhile, the electronic device 503 may use location information storedin the memory to determine whether to transmit a key to the vehicle 501.

For example, a key may be transmitted to the vehicle 503 (door lockdevice) only when a user is within a predetermined distance from thevehicle 501. On the other hand, when the user is far away from thevehicle 501, a key may not be transmitted to the vehicle.

FIG. 6 illustrates a structure of a key stored in a memory of anelectronic device according to various embodiments.

Referring to FIG. 6 , the key may include multiple data fields 601 to617.

The field 601 may be a serial number of a door lock device. The serialnumber may be designated by a user, or may be provided by a door lockdevice manufacturer.

The field 603 is credential data that can be used to unlock the doorlock device. That is, the field 603 may be a unique number for releasingthe locked state of the door lock device.

The field 605 may indicate the type of a key. The type may be data fordetermining whether a door is fixedly positioned like an entrance dooror is movable like a door or trunk of a vehicle. Further, the type maybe data indicating a key for operating a specific device, such as a keyfor starting a vehicle.

The field 607 may be data used to decode an encoded key.

The field 609 may be data indicating the authority level of a key. Forexample, as in a vehicle, when a single key can be used to open a dooror trunk of the vehicle and to start the vehicle, the key can be used toopen only the trunk of the vehicle if the field 609 has a value of 1,can be used to open the door and the trunk if the field 609 has a valueof 2, and can be used not only to open the door and the trunk but alsoto start the vehicle if the field 609 has a value of 3.

The field 611 may be data indicating the number of times a key can beused. For example, if the field 611 has a value of 5, the key can beused up to five times.

The field 613 may be data indicating a valid period during which a keycan be used. The field 613 may be a date or a period of time (hours).

For example, if the field 613 has a value of 20161231, a key can be usedonly to Dec. 31, 2016 and cannot be used thereafter. Alternatively, ifthe field 613 has a value of 24 hours, a key can be used only for 24hours after the key is issued.

The field 615 may be location information of the electronic device thattransmits the key.

The field 617 may include information on an issuer that issued the key.For example, information on a door lock device manufacturer may beincluded.

According to various embodiments, in the fields included in the key 600,elements may be omitted, or additional elements may be further included.Alternatively, some elements may be combined to form a single entity.

FIG. 7 illustrates an example in which an electronic device shares a keywith a third party to open a trunk of a vehicle according to variousembodiments.

For convenience of description, a scenario in which a user in an officetransmits, to a courier, a key to be used to open a trunk 442 of avehicle parked at home will be assumed and described.

An electronic device 200 is the user's electronic device and is in anoffice.

An electronic device 500 is the courier's electronic device and isadjacent to a vehicle 400 in which door lock devices 441 and 442 areinstalled. The door lock device 441 may be, for example, a door of thevehicle, and the door lock device 442 may be a trunk of the vehicle.

When the user executes a smart key application in the electronic device200 and then selects “key sharing”, a UI 701 for inputting informationon a person with whom to share a key may be displayed on a screen. Whenthe user inputs the information (e.g. phone number, use period, andauthority) on a person with whom to share a key and then requestssharing in the electronic device 200, the electronic device 200 may addthe input information to a key stored in a memory of the electronicdevice 200 and transmit the key to a server 300.

For example, when the user selects a key 702 to be shared, and inputsthe courier's phone number, unlocking of only a trunk, a valid period ofone time, a use period of one day, etc., the related information may beadded to the corresponding fields of a key (reference numeral 600 inFIG. 6 ).

The electronic device 200 may add additional information to a key(reference numeral 600 in FIG. 6 ) and may transmit the key to theserver 300. The server 300 may transmit the key 702 to the electronicdevice 500 of the courier with reference to the phone number of thecourier.

The electronic device 500 may transmit the key 702 received from theserver 300 to the vehicle 400 in order to open the trunk 442. Theelectronic device 500 may delete the received key 702 from a memory onthe basis of authority information included in the key. In the presentembodiment, if the valid period is one time, the electronic device 500may use the key 702 only once in order to unlock the trunk 442 of thevehicle 400, and may then delete the received key 702 from the memory.

FIG. 8 is a flowchart of a processing operation when a door lock devicehas received a key from an electronic device.

The door lock device receives location information of the electronicdevice (S801). The location information of the electronic device may beincluded in a key or may be transmitted independently of the key. Thedoor lock device may obtain the location information of the electronicdevice from the received key. Alternatively, the door lock device mayobtain the location information of the electronic device from theelectronic device through a communication unit.

The door lock device receives location information of the door lockdevice (S803). The location information of the door lock device may beobtained through a location information reception unit (e.g. a GPS)included in the door lock device. If the door lock device is positionedindoors, the door lock device may obtain the location information byusing indoor positioning techniques (e.g. triangulation technique).

The door lock device determines the distance between the electronicdevice and the door lock device on the basis of the location informationof the electronic device and the location information of the door lockdevice (S805).

On the basis of the distance, the door lock device determines whether tounlock a door lock unit (S807). When the distance between the electronicdevice and the door lock device is shorter than a predetermineddistance, the door lock device unlocks the door lock unit by using areceived key. When the distance between the electronic device and thedoor lock device is longer than the predetermined distance, the doorlock device maintains the door lock unit in a locked state. Further, thedoor lock device may transmit, to the electronic device, notificationinformation indicating abnormal access to the electronic device.

Meanwhile, the door lock unit of the door lock device may include afirst door lock and a second door lock. When a key is received from theelectronic device, the door lock device may selectively release at leastone of the first door lock and the second door lock on the basis of thekey.

For example, when the door lock device is installed in a vehicle, thefirst door lock may be connected to a vehicle door, and the second doorlock may be connected to a vehicle trunk. The key received by the doorlock device may include information for selecting at least one of thefirst door lock or the second door lock. The door lock device may usethe information to drive the first door lock and/or control the seconddoor lock so as to release the locked state of the vehicle door and/orthe vehicle trunk.

The key may include authentication information for authenticating theelectronic device, and the door lock device may use the authenticationinformation to determine whether to unlock the door lock device. Theauthentication information may include ID information of the electronicdevice (e.g. a MAC address, the name of the electronic device, etc.).

The door lock device may also determine the distance between theelectronic device and the door lock device on the basis of a signalreceived from the electronic device. Further, the door lock device maydetermine a direction between the electronic device and the door lockdevice on the basis of a signal received from the electronic device, andmay determine whether to unlock the door lock unit, on the basis of thedetermined direction. A description thereof has been made in detail byusing FIG. 5 , and will thus be omitted.

The term “module”, as used herein, includes a unit configured tohardware, software, or firmware. The term “module” can beinterchangeably used with terms such as “logic”, “logical block”,“component”, “circuit”, or the like. A module can be an integralcomponent, or a minimum unit for performing one or more functions or maybe a part thereof. A module can be mechanically or electricallyimplemented. For example, a module, according to an embodiment of thepresent disclosure, can include an Application-Specific IntegratedCircuit (ASIC) chip, a Field-Programmable Gate Arrays (FPGAs), or aprogrammable-logic device, which are known or will be developed andwhich perform certain operations.

At least some parts of a device (e.g., modules or functions thereof) ora method (e.g., operations), according to embodiments of the presentdisclosure, can be implemented with an instruction stored in anon-transitory computer-readable storage medium (e.g., the memory 130)as a program module. When the instruction is executed by a processor(e.g., the processor 120), the processor can perform a functioncorresponding to the instruction. The non-transitory computer readablerecording medium can include, for example, a hard disk, a floppy disc, amagnetic medium (e.g., a magnetic tape), an optical storage medium(e.g., a Compact Disc-ROM (CD-ROM) or a DVD, a magnetic-optic medium(e.g., a floptical disc)), and an internal memory. The instruction caninclude code created by a compiler or code executable by an interpreter.The module or program module can further include at least one or morecomponents among the aforementioned components, or can omit some ofthem, or can further include additional other components. Operationsperformed by a module, program module, or other components of thevarious embodiments of the present disclosure can be executed in asequential, parallel, repetitive, or heuristic manner. In addition, someof the operations can be executed in a different order or may beomitted, or other operations may be added.

What is claimed is:
 1. A door lock device comprising: a communicationunit, comprising a communication circuit, configured to receive a keyinformation and location information of an electronic device from theelectronic device, wherein the key information includes authenticationinformation for authenticating the electronic device; a locationinformation receiver configured to receive location information of thedoor lock device; a door lock configured to be in a locked or unlockedstate; and a controller electrically connected to the communicationunit, the location information receiver, and the door lock, wherein thecontroller is configured to: determine a movement direction of theelectronic device, and a distance between the electronic device and thedoor lock device on the basis of the location information of theelectronic device and the location information of the door lock device;identify a validity of the key information based on the movementdirection and the distance; determine that the door lock is in a lockedstate when the distance is longer than a predetermined distance or themovement direction is out of a predetermined angle; determine that thedoor lock is in an unlocked state using the key information when thedistance is shorter than the predetermined distance and the movementdirection is within the predetermined angle; and transmit notificationinformation indicating abnormal access to the electronic device when thedistance is longer than the predetermined distance or the movementdirection is out of the predetermined angle.
 2. The device of claim 1,wherein the controller is configured to determine the movement directionof the electronic device on the basis of a signal received from theelectronic device through the communication unit.
 3. The device of claim1, wherein the controller is configured to unlock the door lock by usingthe key information when the distance is shorter than the predetermineddistance.
 4. The device of claim 1, wherein the controller is configuredto unlock the door lock by using the key information when the electronicdevice is positioned within a predetermined area relative to the doorlock device.
 5. The device of claim 1, wherein the controller isconfigured to transmit notification information to the electronic devicewhen the key information configured to unlock the door lock device isreceived through the communication unit while the electronic device isspaced the predetermined distance or more apart from the door lockdevice.
 6. The device of claim 1, wherein the door lock comprises afirst door lock and a second door lock, and the controller is configuredto selectively release at least one of the first door lock and thesecond door lock on the basis of the key information.
 7. The device ofclaim 1, wherein the door lock device is configured to determine whetherto unlock the door lock on the basis of the authentication information.8. The device of claim 1, wherein the authentication informationcomprises ID information of the electronic device.
 9. The device ofclaim 1, wherein the controller is configured to determine the distancebetween the electronic device and the door lock device on the basis of asignal received from the electronic device through the communicationunit.
 10. A control method of a door lock device, the method comprising:receiving a key information and location information of an electronicdevice from the electronic device, wherein the key information includesauthentication information for authenticating the electronic device;receiving location information of the door lock device; determining amovement direction of the electronic device, and a distance between theelectronic device and the door lock device on the basis of the locationinformation of the electronic device and the location information of thedoor lock device; identifying a validity of the key information based onthe movement direction and the distance; determining that the door lockdevice is in a locked state when the distance is longer than apredetermined distance or the movement direction is out of apredetermined angle; determining that the door lock device is in anunlocked state using the key information when the distance is shorterthan the predetermined distance and the movement direction is within thepredetermined angle; and transmitting notification informationindicating abnormal access to the electronic device when the distance islonger than the predetermined distance or the movement direction is outof the predetermined angle.
 11. The method of claim 10, furthercomprising: determining the movement direction of the electronic deviceon the basis of a signal received from the electronic device.
 12. Themethod of claim 10, further comprising unlocking the door lock deviceusing the key information when the distance is shorter than thepredetermined distance.
 13. The method of claim 10, further comprising:receiving the key information configured to unlock the door lock devicethrough the communication unit of the door lock device while theelectronic device is spaced the predetermined distance or more apartfrom the door lock device; and transmitting the notification informationto the electronic device.
 14. The method of claim 10, wherein the doorlock device comprises a first door lock and a second door lock, and themethod further comprises selectively releasing at least one of the firstdoor lock and the second door lock on the basis of the key information.15. The method of claim 10, wherein the method further comprisesdetermining whether to unlock the door lock device by using theauthentication information.
 16. The method of claim 10, wherein theauthentication information comprises ID information of the electronicdevice.
 17. The method of claim 10, wherein determining a distancecomprises: determining the distance between the electronic device andthe door lock device on the basis of a signal received from theelectronic device.
 18. The method of claim 10, further comprising:unlocking the door lock device using the key information when thedistance is shorter than the predetermined distance.